import Button from "./components/Button/index";
import Card from "./components/Card/index";
import Bar from "./components/Bar/index";

const components = [Button, Card, Bar];

const install = function (Vue) {
  components.forEach((component) => {
    Vue.component(component.name, component);
  });
};

if (typeof window !== "undefined" && window.Vue) {
  install(window.Vue);
}

export default { install, Button, Card, Bar, version: "1.0.0" };
